﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TheatreManagementSystem
{
    public class RegularCustomer : Customer
    {
        const int threshold = 2;

        public RegularCustomer(int attendedPerformancesCount, string firstName,string lastName,string telephoneNumber)
            : base(attendedPerformancesCount, firstName, lastName, telephoneNumber)
        {
        }

        public RegularCustomer(int attendedPerformancesCount, string firstName, string lastName)
            : base(attendedPerformancesCount, firstName, lastName)
        {
        }

        public override decimal GetDiscount()
        {
            return 0;
        }

        public override bool IsThresholdReached()
        {
            if (this.attendedPerformancesCount >= threshold)
            {
                return true;
            }
            return false;
        }

    }
}
